<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<script type="text/javascript">
        window.onload = function(){
        	var oUl = document.getElementById('ul1');
        	var aA = oUl.getElementsByTagName('a');

        	for(var i=0;i<aA.length;i++){
        		//点击删除，把整个Li删掉
        		aA[i].onclick = function(){
        			//this指a链接，this.parentNode指a的父级li
                    oUl.removeChild(this.parentNode); 
        		}
        	}
        }
	</script>
</head>
<body>

    <div>
    	<ul id="ul1">
    		<li>reffdfdf<a href="javascript:;">删除</a></li>
    		<li>5452455<a href="javascript:;">删除</a></li>
    		<li>间断收到是领导<a href="javascript:;">删除</a></li>
    		<li>54545<a href="javascript:;">删除</a></li>
    		<li>reffdfdf<a href="javascript:;">删除</a></li>
    		<li>九点四十<a href="javascript:;">删除</a></li>
    		<li>reffdfdf<a href="javascript:;">删除</a></li>
    	</ul>
    </div>
	
</body>
</html>